package org.afun.csms_android.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class MyTableOperator {

    // openHelper for creating the tool which support crud
    private MyDatabaseHelper dbOpenHelper;
    // sqListDatabase to crud
    private SQLiteDatabase sqLiteDatabase;
    // myTableOperator
    private TableOperator tableOperator;

    public MyTableOperator(Context context){
        this.dbOpenHelper=new MyDatabaseHelper(context);
        this.sqLiteDatabase=dbOpenHelper.getWritableDatabase();
        this.tableOperator=new TableOperator(sqLiteDatabase);
    }

    public TableOperator getTableOperator(){
        return this.tableOperator;
    }

}
